//
//  MBTheNewCell.m
//  MiBaoTu
//
//  Created by 彭鹏 on 16/9/18.
//  Copyright © 2016年 com.caesartech15. All rights reserved.
//

#import "MBTheNewCell.h"

@implementation MBTheNewCell

- (void)awakeFromNib {
    // Initialization code
    
    UIBezierPath *bezierPath = [UIBezierPath bezierPathWithRoundedRect:_bgView.bounds byRoundingCorners:UIRectCornerBottomLeft|UIRectCornerBottomRight cornerRadii:CGSizeMake(5, 5)];
    CAShapeLayer *layer = [CAShapeLayer layer];
    layer.frame = _bgView.bounds;
    layer.path = bezierPath.CGPath;
    _bgView.layer.mask = layer;
    
 
    
    
}
- (void)drawRect:(CGRect)rect
{
    [super drawRect:rect];
    
    UIBezierPath *bezierPath = [UIBezierPath bezierPathWithRoundedRect:_bgView.bounds byRoundingCorners:UIRectCornerBottomLeft|UIRectCornerBottomRight cornerRadii:CGSizeMake(5, 5)];
    CAShapeLayer *layer = [CAShapeLayer layer];
    layer.frame = _bgView.bounds;
    layer.path = bezierPath.CGPath;
    _bgView.layer.mask = layer;
}
@end
